import { axios } from '@/utils/request'
import api from './apiUrl'

export function CodeDetail (parameter) {
  return axios({
    url: api.CodeDetail + '/' + parameter.codeType,
    method: 'get'
  })
}

export function LasCodeItem (parameter) {
  return axios({
    url: api.LasCodeItem + '/' + parameter.itemTypeId,
    method: 'get'
  })
}

export function GetDepByRole (parameter) {
  return axios({
    url: api.GetDepByRole,
    method: 'get'
  })
}

export function PageMenu (parameter) {
  return axios({
    url: api.PageMenu,
    method: 'get',
    data: parameter
  })
}
export function RoleNames (parameter) {
  return axios({
    url: api.RoleNames,
    method: 'get',
    data: parameter
  })
}
export function DepNames (parameter) {
  return axios({
    url: api.DepNames,
    method: 'get',
    data: parameter
  })
}
export function TopMenu (parameter) {
  return axios({
    url: api.TopMenu,
    method: 'get',
    data: parameter
  })
}
export function Buttons (parameter) {
  return axios({
    url: api.Buttons,
    method: 'get',
    data: parameter
  })
}
export function Deparments (parameter) {
  return axios({
    url: api.Deparments,
    method: 'get',
    data: parameter
  })
}
